home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / Libraries / Events / Tick.cp < prev    next >
Text File  |  1997-06-28  |  255b  |  18 lines

  1. // Tick.cp
  2.  
  3. #ifndef Tick_h
  4. #include "Tick.h"
  5. #endif
  6. #ifndef Assert_h
  7. #include "Assert.h"
  8. #endif
  9.  
  10. void Tick::WaitFor() const
  11.   {
  12.     // This is a pretty annoying way to wait for long periods
  13.     Assert( *this - Now() <= 300 );
  14.     
  15.     while ( *this > Now() )
  16.         ;
  17.   }
  18.